package com.bawei.demo_mvp.base;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

/**
 * @author yaotianxue
 * @description
 * @date 2025/5/12
 */
public abstract class BaseActivity extends AppCompatActivity implements BaseView {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(bindLayout());
        //沉浸式状态栏
        initView(savedInstanceState);
        initData();
    }
    public abstract int bindLayout();
    public abstract void initView(Bundle savedInstanceState);
    public abstract void initData();
}
